﻿@model Jb.Web.ViewModels.UtilityModels.ListConfig
@using Jb.Web.Utility;
@{    
	String pageTitle = "List of Applied Jobs";
    ViewBag.Title = Html.GetPageTitle(pageTitle);

    Jb.Web.ViewModels.JobAppListType _ListType = Jb.Web.ViewModels.JobAppListType.JobSeekersList;
    ViewData[AppConstants.ViewDataKeys.LIST_TYPE] = _ListType;
    ViewData[AppConstants.ViewDataKeys.SELECTED_MENU] = JobSeekerMenu.AppliedJobs;
    Model.Pager.UrlFormat = "/JobSeeker/Job/AppliedJobs?PageNo={0}";
		
}
<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    <div>
        View your Job Applications. Newest applications will come first.
    </div>
</div>
<div class="jb-page-content">
    @Html.Partial("_JobApplicationList", Model.DataSource)
    @if (Model.Pager != null) {
        @Html.Partial("_Pager", Model.Pager)
    }    
</div>

@*Modal Popup (Job Application) Section Starts*@
<div id="divCoverletterDialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="divPhotoEditModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">X</button>
        <h4 id="myModalLabel">Job Application</h4>
    </div>
    <div class="modal-body jb-inline-label">            
        <div id="divModalMesssage"></div>
    </div>
    <div class="modal-footer">        
        <button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-off"></i> Close</button>
    </div>
</div>
@*Modal Popup (Job Application) Section Ends*@

@section JavaScriptPlaceHolder
{
<script language="javascript" type="text/javascript">

    function ShowApplication(applicationID) {
        var divID = 'divCoverLetter_' + applicationID;
        $('#divModalMesssage').html($('#' + divID).html());
        $('#divCoverletterDialog').modal({ show: true });
    }
</script>
}
    


